package com.wsc.interfaces;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "MARKET-COMMON-SERVICE")
@RequestMapping("/redis")
public interface RedisInterface {

    @GetMapping("/get/{key}")
    public String getValue(@PathVariable("key") String key );

    @PostMapping("/set")
    public void setValue(@RequestParam("key") String key, @RequestParam("value") String value);

}
